const { override, addWebpackAlias, fixBabelImports } = require('customize-cra');
const path = require('path')

module.exports = override(
  // 别名
  addWebpackAlias({
    ["@"]: path.resolve(__dirname, 'src')
  }),
  // 按需打包
  fixBabelImports('import', {
    libraryName: 'antd',
    libraryDirectory: 'es',
    style: true,
  }),

)